﻿@model dynamic
@{
    Layout = null;
}
<div style="height:20px"><b>权限管理</b></div>
<div style=" padding-top:50px; padding-bottom:50px">
@using (Html.BeginForm("SaveRoles", "Users", FormMethod.Post, new { id = "form" }))
{
    <div style=" text-align:center; padding-bottom:50px">
        @foreach (var m in Model.List)
        {
            <span>@m.Name</span><input type="checkbox" name="ckbRoles" value="@m.AID" @(((bool)m.Role)?"checked":"") /> @Html.Raw("&nbsp;&nbsp;")
        }
        <div style=" padding-top:50px;">上传限制：@Html.TextBox("txtUploadLimit", (long?)Model.UploadSize, new { style="width:50px"}) MB</div>
        @Html.Hidden("uid",(long)Model.UID)
    </div>
    <div style=" text-align:center">
        <button id="btnRoles">保存</button>
        <script>
            $("#btnRoles").button();
        </script>
    </div>
}
</div>